var fs = require('fs');
var path = require('path');
var js_parse = require("./js_parse.js");

var arguments = process.argv.splice(2);
var jsurl = arguments[0];
let codeContent = fs.readFileSync(jsurl, { encoding: "utf8" });
codeContent = js_parse.js_beautify(codeContent, 4, ' ');

fs.writeFileSync(jsurl, codeContent, { encoding: "utf8" });
console.log("执行完成！--" + jsurl);
